function login(){
    var account=$("#account").val();
    var password=$("#password").val();
    var url="http://localhost:8080/user/login";
    var data={
        account:account,
        password:password
    }
    var jsonstr = JSON.stringify(data);
    if(account==null||account==""||password==null||password==""){
        alert("请正确输入账号和密码！");
        return ;
    }
    $.ajax({
            url : url,
            dataType: "json",
            async:false,
            contentType: "application/json",
            data:{
                account:account,
                password:password
            },
            type : 'GET',
            success: function(res){
                console.log(res.resultObj);
                if(res.resultCode=="000000"){
                    alert("登录成功");
                }else{
                    alert("登录失败");
                }

            }
        }
    );
}

